package cn.wolfcode.luowowo.service;

import cn.wolfcode.luowowo.cache.vo.TravelStatisVO;
import cn.wolfcode.luowowo.domain.Destination;
import cn.wolfcode.luowowo.domain.Strategy;
import cn.wolfcode.luowowo.domain.Travel;
import cn.wolfcode.luowowo.domain.UserInfo;
import cn.wolfcode.luowowo.query.TravelQuery;
import org.springframework.data.domain.Page;

import java.util.List;

public interface ITravelsService {
    Travel get(String id);
    void delete(String id);
    void save(Travel travel);
    void update(Travel travel);
    List<Travel> list();
    Page<Travel> query(TravelQuery qo, UserInfo user);

    void changeState(String id, int state);

    void saveOrUpdate(Travel travel);

    List<Destination> getDest(String destId);

    UserInfo getUser(String tid);

    Page<Strategy> getViewnum5();

    void updateVO(TravelStatisVO travelStatisVO);

    List<Travel> getByDestName(String destName);
}
